package M807;

import java.util.Scanner;

//第十四题
public class M80714 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.print("请输入一个正整数: ");
        int num = in.nextInt();
        int reversedNum = reverseNumber(num);
        int result = reversedNum + 1024;
        System.out.println("倒转后的数字: " + reversedNum);
        System.out.println("最终结果: " + result);
    }
    public static int reverseNumber(int num) {
        int reversed = 0;
        while (num != 0) {
            int digit = num % 10;
            reversed = reversed * 10 + digit;
            num /= 10;
        }
        return reversed;
    }
}
